package com.cptravel.activity;

import android.text.TextUtils;
import android.view.View;
import android.webkit.WebView;
import com.core.controller.B5MBaseActivity;
import com.cptravel.R;

/**
 * Created by lscm on 2015/1/4.
 */
public class VideoActivity extends B5MBaseActivity
{
    private WebView mWebView;
    private String url;

    @Override protected String getHeadTitle()
    {
        return null;
    }

    @Override public int doGetContentViewId()
    {
        return R.layout.video;
    }

    @Override public void doInitSubViews(View containerView)
    {
        mWebView = (WebView) findViewById(R.id.wv_video);
        mWebView.getSettings().setJavaScriptEnabled(true);
    }

    @Override public void doInitDataes()
    {
        url = getIntent().getStringExtra("url");
    }

    @Override public void doAfter()
    {
        if (!TextUtils.isEmpty(url))
            mWebView.loadUrl(url);
    }
}
